package com.yzt.zhuju.network;

import com.yzt.plugin_network.response.HttpResponse;

/**
 * User: fish
 * E-mail: 709913163@qq.com
 * Date: 2022/11/30
 * Time: 14:37
 * describe:
 */
public class ServerException extends RuntimeException{
    public int status;
    public String info;

    private final static String TAG = ServerException.class.getSimpleName();

    public HttpResponse response;

    public ServerException(HttpResponse httpResponse) {
        response = httpResponse;
        status = response.code;
//        info = HttpErrorMessage.getErrorMessage(status, response.content);
        info = response.msg;
    }

    public ServerException(String detailMessage) {
        super(detailMessage);
    }


    public ServerException(String message, Throwable cause) {
        super(message, cause);
    }
}
